home *** CD-ROM | disk | FTP | other *** search
/ Freelog 117 / FreelogNo117-OctobreNovembre2013.iso / Programmation / jedit / jedit5.1.0install.exe / {app} / modes / shtml.xml < prev    next >
Extensible Markup Language  |  2013-07-28  |  3KB  |  118 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!DOCTYPE MODE SYSTEM "xmode.dtd">
  4.  
  5. <MODE>
  6.     <PROPS>
  7.         <PROPERTY NAME="commentStart" VALUE="<!--" />
  8.         <PROPERTY NAME="commentEnd" VALUE="-->" />
  9.     </PROPS>
  10.     <RULES IGNORE_CASE="TRUE">
  11.         <!-- SSI -->
  12.         <!-- SSI directives should ALWAYS end like this, with a space
  13.             before the tag end, so let's make it colorize poorly otherwise -->
  14.         <!-- ... or really? see bug report 964860 -->
  15.         <SPAN TYPE="KEYWORD3" DELEGATE="SSI">
  16.             <BEGIN><!--#</BEGIN>
  17.             <END>--></END>
  18.         </SPAN>
  19.  
  20.         <!-- SGML comment -->
  21.         <SPAN TYPE="COMMENT1">
  22.             <BEGIN><!--</BEGIN>
  23.             <END>--></END>
  24.         </SPAN>
  25.  
  26.         <!-- JavaScript -->
  27.         <SPAN TYPE="MARKUP" DELEGATE="html::JAVASCRIPT">
  28.             <BEGIN><SCRIPT</BEGIN>
  29.             <END></SCRIPT></END>
  30.         </SPAN>
  31.  
  32.         <!-- stylesheet -->
  33.         <SPAN TYPE="MARKUP" DELEGATE="html::CSS">
  34.             <BEGIN><STYLE</BEGIN>
  35.             <END></STYLE></END>
  36.         </SPAN>
  37.  
  38.         <!-- DTD instructions -->
  39.         <SPAN TYPE="KEYWORD2" DELEGATE="xml::DTD-TAGS">
  40.             <BEGIN><!</BEGIN>
  41.             <END>></END>
  42.         </SPAN>
  43.  
  44.         <!-- markup tags -->
  45.         <SPAN TYPE="MARKUP" DELEGATE="TAGS">
  46.             <BEGIN><</BEGIN>
  47.             <END>></END>
  48.         </SPAN>
  49.  
  50.         <!-- SGML entities -->
  51.         <SPAN TYPE="LITERAL2" NO_WORD_BREAK="TRUE">
  52.             <BEGIN>&</BEGIN>
  53.             <END>;</END>
  54.         </SPAN>
  55.     </RULES>
  56.  
  57.     <RULES SET="TAGS" DEFAULT="MARKUP">
  58.         <SPAN TYPE="LITERAL1">
  59.             <BEGIN>"</BEGIN>
  60.             <END>"</END>
  61.         </SPAN>
  62.  
  63.         <SPAN TYPE="LITERAL1">
  64.             <BEGIN>'</BEGIN>
  65.             <END>'</END>
  66.         </SPAN>
  67.  
  68.         <SEQ TYPE="OPERATOR">=</SEQ>
  69.     </RULES>
  70.  
  71.     <RULES SET="SSI" DEFAULT="KEYWORD3">
  72.         <SPAN TYPE="LITERAL1" MATCH_TYPE="OPERATOR" DELEGATE="SSI-EXPRESSION">
  73.             <BEGIN>"</BEGIN>
  74.             <END>"</END>
  75.         </SPAN>
  76.  
  77.         <!-- MD: i don't think this is valid
  78.         <SPAN TYPE="LITERAL1" MATCH_TYPE="OPERATOR" DELEGATE="SSI-EXPRESSION">
  79.             <BEGIN>'</BEGIN>
  80.             <END>'</END>
  81.         </SPAN>
  82.         -->
  83.  
  84.         <SEQ TYPE="OPERATOR">=</SEQ>
  85.  
  86.         <KEYWORDS>
  87.             <KEYWORD1>config</KEYWORD1>
  88.             <KEYWORD1>echo</KEYWORD1>
  89.             <KEYWORD1>exec</KEYWORD1>
  90.             <KEYWORD1>flastmod</KEYWORD1>
  91.             <KEYWORD1>fsize</KEYWORD1>
  92.             <KEYWORD1>include</KEYWORD1>
  93.  
  94.             <KEYWORD2>cgi</KEYWORD2>
  95.             <KEYWORD2>errmsg</KEYWORD2>
  96.             <KEYWORD2>file</KEYWORD2>
  97.             <KEYWORD2>sizefmt</KEYWORD2>
  98.             <KEYWORD2>timefmt</KEYWORD2>
  99.             <KEYWORD2>var</KEYWORD2>
  100.             <KEYWORD2>cmd</KEYWORD2>
  101.         </KEYWORDS>
  102.     </RULES>
  103.  
  104.     <RULES SET="SSI-EXPRESSION" DEFAULT="LITERAL1" ESCAPE="\">
  105.  
  106.         <MARK_FOLLOWING TYPE="KEYWORD2">$</MARK_FOLLOWING>
  107.  
  108.         <SEQ TYPE="OPERATOR">=</SEQ>
  109.         <SEQ TYPE="OPERATOR">!=</SEQ>
  110.         <SEQ TYPE="OPERATOR"><</SEQ>
  111.         <SEQ TYPE="OPERATOR"><=</SEQ>
  112.         <SEQ TYPE="OPERATOR">></SEQ>
  113.         <SEQ TYPE="OPERATOR">>=</SEQ>
  114.         <SEQ TYPE="OPERATOR">&&</SEQ>
  115.         <SEQ TYPE="OPERATOR">||</SEQ>
  116.     </RULES>
  117. </MODE>
  118.